package com.ruoyi.cms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cms.mapper.CmsSiteCompanyMapper;
import com.ruoyi.cms.domain.CmsSiteCompany;
import com.ruoyi.cms.service.ICmsSiteCompanyService;

/**
 * 装修公司Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-27
 */
@Service
public class CmsSiteCompanyServiceImpl implements ICmsSiteCompanyService 
{
    @Autowired
    private CmsSiteCompanyMapper cmsSiteCompanyMapper;

    /**
     * 查询装修公司
     * 
     * @param id 装修公司主键
     * @return 装修公司
     */
    @Override
    public CmsSiteCompany selectCmsSiteCompanyById(Long id)
    {
        return cmsSiteCompanyMapper.selectCmsSiteCompanyById(id);
    }

    /**
     * 查询装修公司列表
     * 
     * @param cmsSiteCompany 装修公司
     * @return 装修公司
     */
    @Override
    public List<CmsSiteCompany> selectCmsSiteCompanyList(CmsSiteCompany cmsSiteCompany)
    {
        return cmsSiteCompanyMapper.selectCmsSiteCompanyList(cmsSiteCompany);
    }

    /**
     * 新增装修公司
     * 
     * @param cmsSiteCompany 装修公司
     * @return 结果
     */
    @Override
    public int insertCmsSiteCompany(CmsSiteCompany cmsSiteCompany)
    {
        return cmsSiteCompanyMapper.insertCmsSiteCompany(cmsSiteCompany);
    }

    /**
     * 修改装修公司
     * 
     * @param cmsSiteCompany 装修公司
     * @return 结果
     */
    @Override
    public int updateCmsSiteCompany(CmsSiteCompany cmsSiteCompany)
    {
        return cmsSiteCompanyMapper.updateCmsSiteCompany(cmsSiteCompany);
    }

    /**
     * 批量删除装修公司
     * 
     * @param ids 需要删除的装修公司主键
     * @return 结果
     */
    @Override
    public int deleteCmsSiteCompanyByIds(Long[] ids)
    {
        return cmsSiteCompanyMapper.deleteCmsSiteCompanyByIds(ids);
    }

    /**
     * 删除装修公司信息
     * 
     * @param id 装修公司主键
     * @return 结果
     */
    @Override
    public int deleteCmsSiteCompanyById(Long id)
    {
        return cmsSiteCompanyMapper.deleteCmsSiteCompanyById(id);
    }

    @Override
    public List<CmsSiteCompany> selectCmsSiteCompanyLikeList(CmsSiteCompany param) {
        return cmsSiteCompanyMapper.selectCmsSiteCompanyLikeList(param);
    }
}
